<!-- modal template -->
<div class="modal-header">
    <h4 class="modal-title" id="myModalLabel">{{i18n.user_edit_title}}</h4>
</div>
<form class="form-horizontal" name="userEditForm" novalidate="novalidate">
    <div class="modal-body">
        <div class="row" style="padding:0;">
            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-md-2 control-label require">{{i18n.user_userAccount}}</label>

                    <div class="col-md-4 has-feedback">
                        <input type="text" name="userAccount" class="input-sm form-control" required
                               ng-model="user.userAccount" ng-required="true"/>
                    </div>
                    <label class="col-md-2 control-label require">{{i18n.user_userName}}</label>

                    <div class="col-md-4 has-feedback">
                        <input type="text" name="userName" class="input-sm form-control"
                               ng-model="user.userName" ng-required="true"/>
                    </div>
                </div>
                <div class="hr-line-dotted"></div>
                <div class="form-group">

                    <!--<label class="col-md-2 control-label require">性别</label>-->
                    <label class="col-md-2 control-label require">{{i18n.user_email}}</label>
                    <div class="col-md-4">
                        <input type="text" name="email" ng-pattern="" class="input-sm form-control"
                               ng-model="user.email"/>
                    </div>
                    <label class="col-md-2 control-label require">{{i18n.user_userEnable}}</label>

                    <div class="col-md-4 has-feedback">
                        <label class="radio-inline">
                            <input name="userEnable" type="radio" value="1" ng-model="user.userEnable" ng-checked="true"
                                   required>
                            {{i18n.status_enable}}
                        </label>
                        <label class="radio-inline">
                            <input name="userEnable" type="radio" value="0" ng-model="user.userEnable">
                            {{i18n.status_unable}}
                        </label>
                    </div>


                </div>
                <div class="hr-line-dotted"></div>
                <div class="form-group">
                    <label class="col-md-2 control-label require">{{i18n.user_userOrgName}}</label>

                    <div class="col-md-4 has-feedback">
                        <!--   <input type="text" name="userOrgId" class="input-sm form-control" ng-model="user.userOrgId" ng-required="true" /> -->
                        <input type="text" name="userOrgName"
                               class="form-control  input-sm ng-pristine ng-untouched ng-valid"
                               placeholder="please selected userOrgName" ng-click="selectOrgs()" style="cursor: pointer;" readonly="readonly"
                               ng-model="user.userOrgName" ng-required="true"/>
                    </div>
                    <label class="col-md-2 control-label">{{i18n.user_userTelephone}}</label>

                    <div class="col-md-4 has-feedback">
                        <input type="text" name="userTelephone" class="input-sm form-control"
                               ng-model="user.userTelephone"/>
                    </div>
                </div>
                <div class="hr-line-dotted"></div>
                <div class="form-group">

                    <label class="col-md-2 control-label">{{i18n.user_userMobile}}</label>

                    <div class="col-md-4 has-feedback">
                        <input type="text" name="userMobile" class="input-sm form-control" ng-model="user.userMobile"/>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" ng-click="cancel()">{{i18n.btn_cancel}}</button>
        <button type="submit" ng-disabled="userEditForm.$invalid" class="btn btn-primary" ng-click="ok()">{{i18n.btn_ok}}</button>
    </div>
</form>
